#include"SeqList.h"
void test()
{
	SeqList sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);
	SeqListPushBack(&sl, 6);

	SeqListPrint(&sl);
	printf("\n");

	SeqListPushFront(&sl, 1);
	SeqListPushFront(&sl, 2);
	SeqListPushFront(&sl, 3);
	SeqListPushFront(&sl, 4);
	SeqListPushFront(&sl, 5);
	SeqListPushFront(&sl, 6);

	SeqListPrint(&sl);
	printf("\n");

	printf("%d\n", SeqListFind(&sl, 1));
	printf("%d\n", SeqListFind(&sl, 6));

	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);

	SeqListPrint(&sl);
	printf("\n");

	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);


	SeqListPrint(&sl);
	printf("\n");

	SeqListInsert(&sl, 0, 1);
	SeqListInsert(&sl, 0, 2);
	SeqListInsert(&sl, 0, 3);
	SeqListInsert(&sl, 1, 1);

	SeqListPrint(&sl);
	printf("\n");

	SeqListErase(&sl, 0);
	SeqListErase(&sl, 0);

	SeqListPrint(&sl);
	printf("\n");

	SeqListDestroy(&sl);

}
int main()
{
	test();
	return 0;
}